package de.openlaboratory.labhub.core.framework;

import javax.ejb.SessionBean;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import de.openlaboratory.labhub.core.ApplicationResources;

public class RegistryContextListener implements ServletContextListener
{
	static RegistryContextListener registry = null;

	public RegistryContextListener()
	{
		if (registry == null)
		{
			// registry = new RegistryContextListener();
		}
		else
		{
			
		}		
	}
	
	public static String string(String key) {
		return null;
	}

	public static SessionBean getRegistryService()
	{
		return null;
	}

	public void contextDestroyed(ServletContextEvent sce)
	{
//		try
//		{
//			registry.doShutdown();
//			registry.interrupt();
//		}
//		catch (Exception ex)
//		{
//			
//		}

	}

	public void contextInitialized(ServletContextEvent sce)
	{
//		if ((registry == null) || (!registry.isAlive()))
//		{
//			registry = new Registry();
//			registry.start();
//		}

	}
}
